from query_tree_node import *

class JoinQueryNode (QueryTreeNode):
	'''
		join operation between 2 (table | other join result) nodes
	'''
	
	def __init__(self, **join_dict):
		super(JoinQueryNode, self).__init__()
		try:
			#self.join_table_list = join_dict['table_list']
			self.join_condition_list = join_dict['condition_list']
		except KeyError:
			print "JoinQueryNode argument error! argument should be dict with key 'table_list' and 'condition_list'" 

	def __str__(self):
		return 'JoinQueryNode ' + str(self.join_condition_list)
			
if __name__ == '__main__':
	node = JoinQueryNode(table_list=[], condition_list=[])

